package com.wodsy.phoenix.dataobject.shopc.model;

// Generated 2015-3-6 15:40:39 by Hibernate Tools 3.4.0.CR1

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbShopkeeperAccount generated by hbm2java
 */
@Entity
@Table(name = "tb_shopkeeper_account", catalog = "shopc")
public class ShopkeeperAccount extends PhoenixObject implements Serializable,PhoenixRequest,PhoenixResponse {

	private Integer accountId;
	private int shopId;
	private int userId;
	private String cardNo;
	private String ownerName;
	private String paypalAccount;
	private String openingBank;
	private String bankBranch;
	private String accountTypes;
	private Integer provinceId;
	private Integer cityId;
	private String bankProvince;
	private String bankCity;
	private Boolean useStatus = false;
	private Date createTime;
	private Date updateTime;
	private Boolean delete = false;

	public ShopkeeperAccount() {
	}

	public ShopkeeperAccount(int shopId, int userId, Date createTime) {
		this.shopId = shopId;
		this.userId = userId;
		this.createTime = createTime;
	}

	public ShopkeeperAccount(int shopId, int userId, String cardNo,
			String ownerName, String paypalAccount, String openingBank,
			String bankBranch, String accountTypes, Integer provinceId,
			Integer cityId, String bankProvince, String bankCity,
			Boolean useStatus, Date createTime, Date updateTime) {
		this.shopId = shopId;
		this.userId = userId;
		this.cardNo = cardNo;
		this.ownerName = ownerName;
		this.paypalAccount = paypalAccount;
		this.openingBank = openingBank;
		this.bankBranch = bankBranch;
		this.accountTypes = accountTypes;
		this.provinceId = provinceId;
		this.cityId = cityId;
		this.bankProvince = bankProvince;
		this.bankCity = bankCity;
		this.useStatus = useStatus;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	public ShopkeeperAccount(Integer accountId, int shopId, int userId,
			String cardNo, String ownerName, String paypalAccount,
			String openingBank, String bankBranch, String accountTypes,
			Integer provinceId, Integer cityId, String bankProvince,
			String bankCity, Boolean useStatus, Date createTime,
			Date updateTime, Boolean delete) {
		super();
		this.accountId = accountId;
		this.shopId = shopId;
		this.userId = userId;
		this.cardNo = cardNo;
		this.ownerName = ownerName;
		this.paypalAccount = paypalAccount;
		this.openingBank = openingBank;
		this.bankBranch = bankBranch;
		this.accountTypes = accountTypes;
		this.provinceId = provinceId;
		this.cityId = cityId;
		this.bankProvince = bankProvince;
		this.bankCity = bankCity;
		this.useStatus = useStatus;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.delete = delete;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "account_id", unique = true, nullable = false)
	public Integer getAccountId() {
		return this.accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	@Column(name = "shop_id", nullable = false)
	public int getShopId() {
		return this.shopId;
	}

	public void setShopId(int shopId) {
		this.shopId = shopId;
	}

	@Column(name = "user_id", nullable = false)
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Column(name = "card_no", length = 24)
	public String getCardNo() {
		return this.cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	@Column(name = "owner_name", length = 32)
	public String getOwnerName() {
		return this.ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	@Column(name = "paypal_account", length = 152)
	public String getPaypalAccount() {
		return this.paypalAccount;
	}

	public void setPaypalAccount(String paypalAccount) {
		this.paypalAccount = paypalAccount;
	}

	@Column(name = "opening_bank", length = 56)
	public String getOpeningBank() {
		return this.openingBank;
	}

	public void setOpeningBank(String openingBank) {
		this.openingBank = openingBank;
	}

	@Column(name = "bank_branch", length = 78)
	public String getBankBranch() {
		return this.bankBranch;
	}

	public void setBankBranch(String bankBranch) {
		this.bankBranch = bankBranch;
	}

	@Column(name = "account_types", length = 24)
	public String getAccountTypes() {
		return this.accountTypes;
	}

	public void setAccountTypes(String accountTypes) {
		this.accountTypes = accountTypes;
	}

	@Column(name = "province_id")
	public Integer getProvinceId() {
		return this.provinceId;
	}

	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}

	@Column(name = "city_id")
	public Integer getCityId() {
		return this.cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	@Column(name = "bank_province", length = 24)
	public String getBankProvince() {
		return this.bankProvince;
	}

	public void setBankProvince(String bankProvince) {
		this.bankProvince = bankProvince;
	}

	@Column(name = "bank_city", length = 24)
	public String getBankCity() {
		return this.bankCity;
	}

	public void setBankCity(String bankCity) {
		this.bankCity = bankCity;
	}

	@Column(name = "use_status")
	public Boolean getUseStatus() {
		return this.useStatus;
	}

	public void setUseStatus(Boolean useStatus) {
		this.useStatus = useStatus;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "is_delete")
	public Boolean getDelete() {
		return delete;
	}

	public void setDelete(Boolean delete) {
		this.delete = delete;
	}

}
